var protobuf = require('protobufjs');
var fs = require('fs');

var builder = protobuf.newBuilder();

protobuf.loadProtoFile('enums.proto', builder);
protobuf.loadProtoFile('tank_base_data.proto', builder);

var proto = builder.build();

var tanklist = proto.DataConfig.TANK_BASE_DATA_ARRAY.decode(fs.readFileSync('tank_base_data.bin'));

console.log(tanklist.calculate());
